export interface Member {
  id?: number;
  shop_id?: number;
  uid?: number;
  realname?: object;
  nickname?: string;
  avatar?: string;
  province?: string;
  city?: string;
  sex?: number;
  unionid?: string;
  openid?: string;
  pmid?: number;
  follow?: number;
  followtime?: object;
  unfollowtime?: object;
  create_time?: number;
  update_time?: number;
  last_login_time?: object;
  last_buy_time?: object;
  from?: number;
  from_id?: number;
}

/**
 * 多端唯一用户ID
 */
export interface MemberUser {
  uid?: number;
  phone?: number;
  unionid?: string;
  shop_id?: number;
  name?: string;
  totalCost?: number;
  tradeCount?: number;
  birthday?: string;
  sex?: number;
  level_id?: number;
  wechat?: string;
  remark?: string;
  type?: number;
  create_time?: number;
  update_time?: number;
  user_id?: number;
  u_nickname?: string;
  u_avatar?: string;
}

export interface MemberAddress {
  address_id?: number;
  mid?: number;
  uid?: number;
  gender?: 0 | 1 | 2;
  /** 省 */
  province: string;
  /** 市 */
  city: string;
  /** 区 */
  district: string;
  /** 详细地址（门牌号） */
  address: string;
  /** 收货人姓名 */
  name: string;
  /** 手机号、联系电话 */
  mobile: string | number;
  location_lat?: number | null;
  location_lng?: number | null;
  /** 第三方地图地标编码 */
  locale_adcode?: number | null;
  /** 第三方地图地标地址 */
  locale_address?: string | null;
  /** 第三方地图地标ID */
  locale_id?: number | string | null;
  /** 第三方地图地标地名 */
  locale_title?: string | null;
  zip?: object;
  default?: number;
  create_time?: number;
  update_time?: number;
}

/**
 * 会员等级
 */
export interface MemberLevel {
  id?: number;
  level?: number;
  name?: string;
  amountLimit?: number;
  tradeLimit?: number;
  desc?: string;
  shop_id?: number;
  create_time?: number;
}
